﻿
public class Request_FetchMoments : RequestBase
{

    public const string NetRequest_UploadBaseInfo_Key = "FetchMoments";

    public FetchUserMomentsRequestData fetchUserMomentsReqData = new FetchUserMomentsRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return fetchUserMomentsReqData;
        }
    }

    public Request_FetchMoments() : base()
    {
        MessagePacket.key = NetRequest_UploadBaseInfo_Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送FetchUserMoments请求：{fetchUserMomentsReqData.num}");
    }

    public override ResponseData NewResponseData() => new FetchMomentsResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_FetchMoments();
    //}
}

//public class Response_FetchMoments : ResponseBase
//{
//    public override ResponseData NewResponseData() => new FetchMomentsResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_FetchCandidates -> Excuate");

//        (this.request as Request_FetchMoments)?.onResponse?.Invoke(this);
//    }
//}
